package com.supermarket.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.supermarket.business.domain.SupermarketSupplier;
import com.supermarket.business.vo.SupermarketSupplierVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 供应商Service接口
 * 
 * @author ruoyi
 * @date 2025-07-21
 */
public interface ISupermarketSupplierService extends IService<SupermarketSupplier>
{
    /**
     * 查询供应商
     * 
     * @param supplierId 供应商主键
     * @return 供应商
     */
    public SupermarketSupplier selectSysSupplierBySupplierId(Long supplierId);

    /**
     * 查询供应商列表
     * 
     * @param supermarketSupplier 供应商
     * @return 供应商集合
     */
    public List<SupermarketSupplier> selectSysSupplierList(SupermarketSupplier supermarketSupplier);

    /**
     * 新增供应商
     * 
     * @param supermarketSupplier 供应商
     * @return 结果
     */
    public int insertSysSupplier(SupermarketSupplier supermarketSupplier);

    /**
     * 修改供应商
     * 
     * @param supermarketSupplier 供应商
     * @return 结果
     */
    public int updateSysSupplier(SupermarketSupplier supermarketSupplier);

    /**
     * 批量删除供应商
     * 
     * @param supplierIds 需要删除的供应商主键集合
     * @return 结果
     */
    public int deleteSysSupplierBySupplierIds(Long[] supplierIds);

    /**
     * 删除供应商信息
     * 
     * @param supplierId 供应商主键
     * @return 结果
     */
    public int deleteSysSupplierBySupplierId(Long supplierId);

    /**
     * 获取供应商VO列表
     * @param supermarketSupplier
     * @return
     */
    List<SupermarketSupplierVO> selectSysSupplierListVO(SupermarketSupplier supermarketSupplier);

    /**
     * 获取供应商VO
     * @param supplierId
     * @return
     */
    SupermarketSupplierVO selectSysSupplierVOBySupplierId(@Param("supplierId") Long supplierId);
}
